<?php


namespace app\mini\controller;

// use app\BaseController as BaseController;
use app\mini\model\CustomerOrder as CustomerOrderModel;
use think\response\Json;


class CustomerOrder extends Access
{
	/**
     * 订单列表
     * @return Json
     * @author hz
     * @create 2021-10-22
     */
    public function index(): Json
    {
    	$this->param = request()->param();
        $customerOrderModel = new CustomerOrderModel();
        // $this->param['customer_id'] = $this->customerId;
        // $this->param['customer_id'] = 9;
        $data = $customerOrderModel->getDataList($this->param);
        return resultArray($data);
    }
}